﻿namespace TestByWire.Test.Fakes
{
	public class NextGenCalculator
	{
		public NextGenCalculator(IMemory memory)
		{
			Memory = memory;
		}

		public IMemory Memory { get; set; }
	}

	public interface IResult
	{
		int GetValue();
	}

	public interface IMemory
	{
		IResult StoredValue { get; set; }
	}

	public class Result : IResult
	{
		private readonly int _value;

		public Result(int value)
		{
			_value = value;
		}

		public int GetValue()
		{
			return _value;
		}
	}
}
